import request from '@/utils/request'

// 查询简历信息列表
export function listResume(query) {
  return request({
    url: '/crm/resume/list',
    method: 'get',
    params: query
  })
}

// 查询某一个人简历信息列表
export function getOneResume(query) {
  return request({
    url: '/crm/resume/one',
    method: 'get',
    params: query
  })
}

// 查询简历信息详细
export function getResume(id) {
  return request({
    url: '/crm/resume/' + id,
    method: 'get'
  })
}

// 新增简历信息
export function addResume(data) {
  return request({
    url: '/crm/resume',
    method: 'post',
    data: data
  })
}

// 修改简历信息
export function updateResume(data, check, check2) {
  return request({
    url: '/crm/resume' + '?updateSupport=' + check + '&' + 'check2=' + check2,
    method: 'put',
    data: data

  })
}

// 删除简历信息
export function delResume(id) {
  return request({
    url: '/crm/resume/' + id,
    method: 'delete'
  })
}

export function upload(query) {
  return request({
    url: '/crm/resume/upload',
    method: 'post',
    data: query
  })
}

export function getNullPhone() {
  return request({
    url: '/crm/resume/nullPhone',
    method: 'get',
  })
}

